﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;
using System.Web.UI;
using System.Web.UI.WebControls;
using Cosmetic.Logic;

namespace WebApp.Space.AccountInfo
{
    public partial class ShowOrderList : PageBase
    {
        PurchaseManager m_PurchaseManager = new PurchaseManager();
        protected void Page_Load(object sender, EventArgs e)
        {
            if (this.SignInUser == null)
            {
                Page.RegisterClientScriptBlock("key", "<script>window.top.location = '/Login.aspx';</script>");
                //Response.Redirect("~/Login.aspx");
                return;
            }
            if (!IsPostBack)
            {
                try
                {
                    string orderNum = Request.QueryString["oNum"].ToString();

                    this.lvProduct.DataSource = m_PurchaseManager.SearchProductByOrderNum(orderNum);
                    lvProduct.DataBind();
                }
                catch
                { }
            }
        }
    }
}